package com.example.demo.dao;

import com.example.demo.dto.SysPermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName SysPermissionMapper
 * @Desecription TODO 1.2新增
 * @Author gjy
 * @Date 2021/4/8 13:17
 * @Version 1.2
 **/
@Mapper
@Repository
public interface SysPermissionMapper {
    @Select("SELECT * FROM sys_permission WHERE role_id=#{roleId}")
    List<SysPermission> listByRoleId(Integer roleId);
}

